Update App Environment

Updates the name or description of an existing app environment.

PUT{accelqLoginUrl}/awb/api/2.0/{tenantCode}/{projectCode}/conf/app-environments/{appEnvironmentId}

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
projectCodestringYesProject Code found under Auth properties of ACCELQ User Profile
appEnvironmentIdintegerYesThe ID of the App Environment to update.
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Request Body

json
{
  "pid": 15754,
  "appEnvironmentName": "Updated App Environment",
  "description": "Updated description"
}

Responses

200 - App Environment successfully updated.

json
{
  "pid": 15754,
  "appEnvironmentName": "Updated App Environment",
  "description": "Updated description"
}

400 - Bad Request. Validation errors occurred.

json
{
  "error": "App environment name is required."
}

422 - App Environment or Project not found.

json
{
  "error": "App environment with ID '15754' not found."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X PUT "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/conf/app-environments/${{appEnvironmentId}}" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
  "pid": 15754,
  "appEnvironmentName": "Updated App Environment",
  "description": "Updated description"
}'